package com.ywh.hilttest.test7

import android.app.Activity
import android.app.Application
import android.content.Context
import android.util.Log
import dagger.hilt.android.qualifiers.ApplicationContext
import javax.inject.Inject

/**
 * 使用application 的context
 */
class ApplicationContextObject @Inject constructor(@ApplicationContext val context: Context) {
    fun get() {
        Log.e("HiltTest", "ApplicationContextObject:application:${context is Application},activity:${context is Activity}")
    }
}